import java.util.HashMap;
import java.util.Map;

public class _09_Product implements Comparable<_09_Product> {

	private String name;
	private double price;

	public _09_Product(String productName, double productPrice) {

		setName(productName);
		setPrice(productPrice);
	}

	public String getName() {
		return this.name;
	}

	public void setName(String productName) {

		this.name = productName;
	}

	public double getPrice() {

		return this.price;
	}

	public void setPrice(double productPrice) {

		this.price = productPrice;
	}

	@Override
	public int compareTo(_09_Product arg0) {

		double otherPrice = arg0.getPrice();

		if (this.price>otherPrice) {

			return 1;
		}
		else {

			if (this.price==otherPrice) {

				return 0;
			}

			return -1;
		}
	}
}